package com.social.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.social.dao.UserTopicPraiseMapper;
import com.social.dao.model.UserTopicPraise;
import com.social.dao.model.UserTopicPraiseExample;

@Service
public class UserTopicPraiseService {
	@Autowired
	private UserTopicPraiseMapper userTopicPraiseMapper;

	public int countByExample(UserTopicPraiseExample example) {
		return this.userTopicPraiseMapper.countByExample(example);
	}

	public UserTopicPraise selectByPrimaryKey(Integer id) {
		return this.userTopicPraiseMapper.selectByPrimaryKey(id);
	}

	public List<UserTopicPraise> selectByExample(UserTopicPraiseExample example) {
		return this.userTopicPraiseMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.userTopicPraiseMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(UserTopicPraise record) {
		return this.userTopicPraiseMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(UserTopicPraise record) {
		return this.userTopicPraiseMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(UserTopicPraiseExample example) {
		return this.userTopicPraiseMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(UserTopicPraise record, UserTopicPraiseExample example) {
		return this.userTopicPraiseMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(UserTopicPraise record, UserTopicPraiseExample example) {
		return this.userTopicPraiseMapper.updateByExample(record, example);
	}

	public int insert(UserTopicPraise record) {
		return this.userTopicPraiseMapper.insert(record);
	}

	public int insertSelective(UserTopicPraise record) {
		return this.userTopicPraiseMapper.insertSelective(record);
	}

}
